#include "StdAfx.h"
#include "TFormBase.h"

CPaintManagerUI* TFormBase::GetPM()
{
	return &m_pm;
}
CControlUI* TFormBase::RegControl(LPCTSTR pstrClass) {
	CControlUI* ui = NULL;
	if (_tcsicmp(pstrClass, _T("TList")) == 0)
	{
		return  new TListUI;
	}
	if (_tcsicmp(pstrClass, _T("TSliderButton")) == 0)
	{
		return  new CTSliderButtonUI;
	}
	if (_tcsicmp(pstrClass, _T("TProcess")) == 0) {
		return  new TProcessUI;
	}
	if (_tcsicmp(pstrClass, _T("TShadow")) == 0) {

		return  new TShadowUI;
	}
	if (_tcsicmp(pstrClass, _T("TButton")) == 0) {

		return  new TButtonUI;
	}

	return ui;
}